graph theory:component